package com.mapper;

import com.Dto.CounselorInfoDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.CounselingSession;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface CounselingSessionMapper extends BaseMapper<CounselingSession> {


    List<CounselingSession> findCounselingSessionsByCounselorId(@Param("counselorId") int counselorId);
    int createCounselingSession(int visitorId, int counselorId, LocalDateTime time);

    int endCounselingSession(int visitorId, int counselorId, LocalDateTime time);



}
